<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看用户积分日志表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看用户积分日志表明细</h1></td></tr>
        <tr>
            <td>积分日志ID</td>
            <td>
                   <span id="pointId"></span>
            </td>
        </tr>
        <tr>
            <td>用户ID</td>
            <td>
                   <span id="customerId"></span>
            </td>
        </tr>
        <tr>
            <td>积分来源：0订单，1登陆，2活动</td>
            <td>
                   <span id="source"></span>
            </td>
        </tr>
        <tr>
            <td>积分来源相关编号</td>
            <td>
                   <span id="referNumber"></span>
            </td>
        </tr>
        <tr>
            <td>变更积分数</td>
            <td>
                   <span id="changePoint"></span>
            </td>
        </tr>
        <tr>
            <td>积分日志生成时间</td>
            <td>
                   <span id="createTime"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/customerpointlog/findById.json",param,function(detail){
        $("#pointId").text(detail.pointId);
        $("#customerId").text(detail.customerId);
        $("#source").text(detail.source);
        $("#referNumber").text(detail.referNumber);
        $("#changePoint").text(detail.changePoint);
        $("#createTime").text(detail.createTime);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/customerpointlog/list.html";
    });
</script>

</body>
</html>